package com.example.dbmysql.mapper;

import com.example.dbmysql.pojo.RoomList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomListMapper {

    void batchAdd(Object roomList);

    List<RoomList> GetRoomList();

    List<RoomList> SelectAll(int page, int pageSize);

    List<RoomList> selectById(Integer id);

    void update(RoomList roomList);

    void delectById(Integer id);

    void deleteByIds(List id);

    void updateStatusByRoomName(String roomName,int status);

    RoomList selectByRoomName(String roomName);
}
